<?php
/**
 * TaobaoFilter.php class file.
 * @author wudg <544038230@qq.com>
 * @date 2020/10/22- 2:59 下午
 */

namespace common\drivers\cloudFilter;


use common\constants\PlatformConst;
use common\drivers\interfaces\CloudFilterInterface;

class TaobaoFilter extends BaseFilter implements CloudFilterInterface
{

    protected $config = [];

    /**
     * 实例化类
     * @param array $config
     */
    public function __construct(array $config = [])
    {
        $this->config = $config;
    }

    /**
     * @inheritDoc
     */
    public function setRequest(array $request)
    {
        $this->request = $request;
    }

    /**
     * @inheritDoc
     */
    public function getRequest(): array
    {
        return $this->request;
    }


    /**
     * @inheritDoc
     */
    public function getPlatform(): int
    {
        return PlatformConst::PLATFORM_TB;
    }

    /**
     * 淘宝格式转换成云数据库格式
     * @inheritDoc
     */
    public function filterToCloudProduct()
    {

    }


    /**
     * 返回转换后的结果
     * @return array
     */
    public function getResponse():array
    {
        return $this->response;
    }


}